<template>
  <div class="page">
    <div class="nav_container">
      <mynav></mynav>
    </div>
    <banner></banner>
    <div class="container context_container">
      <public-article :param="articleId"></public-article>
    </div> 
  </div>
</template>

<script>
  import mynav from "@/components/nav";
  import banner from "@/components/banner";
  import publicArticle from "@/components/article";
  export default {
    components: {
      mynav,
      banner,
      publicArticle
    },
    data() {
      return {
        articleId:''
      }
    },
    watch: {},
    created(){
      if (this.$route.params.id) this.articleId=this.$route.params.id;
    },
    mounted() {},
    methods: {}
  }
</script>
<style lang="less" scoped>
  .page {
    .nav_container {
      background: #382FBA;
      width: 100%;
      height: 74px;
    }

    .w-100 {
      width: 1920px;
      height: 500px;
    }

    .context_container {
      margin: 15px auto;
      font-size: 14px;

      .let-nav {
        border: 1px solid #f5f5f5;
        box-shadow: 1px 1px 10px 10px #f6f6f6; 
        >a {
          width: 100%;
          margin: 5px auto;
        }
      }

      .right-content {
        border: 1px solid #f5f5f5;
        box-shadow: 1px 1px 10px 10px #f6f6f6;

        >div {
          padding: 15px;
        }

        h3 {
          margin: 15px;
        }
      }
    }
  }
</style>
